//======================================================================
/// COPYRIGHT CATT
/// @file        compensation_phase_calc.f
///
/// @brief       Tx和Rx载频不同时，完成Rx端的载频补偿相位的计算
/// @author      jiayoupeng
/// @note        暂无
/// @par History
/// -
///       Date|       Author|        Version|        DESCRIPTION
/// ----------|-------------|---------------|-------------------
/// 2019-06-28|	  jiayoupeng|          0.0.1|            created
//======================================================================
#ifdef __cplusplus
extern "C" {
#endif
#ifndef _compensation_phase_calc_h_
#define _compensation_phase_calc_h_

#include "ue_rx_front_f.h"

void compensation_phase_calc(INOUT stParam *pstParamTable);
void compensation_phase_calc_core(uint8 PhaseCompFlag, int32 s32PhaseStart[112], double PhaseStartDouble[112], int32 N_Ref[1], uint64 CarrierFreq, uint16 SCS, uint16 CP_Type, int32 PhaseDelta[1]);
int32 FcarrierMultiT(uint32 Factor, uint64 f_rx_side, int16 t_pp, int shift);
void FcarrierMultiT_Table(int32 nl_p[112], uint64 CarrierFreq, uint16 SCS, uint16 CP_Type, int32 nl_p_delta[1]);
int n_l_calc(uint64 CarrierFreq, int16 t_pp);

#endif
#ifdef __cplusplus
}
#endif